
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 订单关联用户点单酒表 */
const schema = MongooseFactory.Schema({
    //酒类id
    wineid:{
        type: Schema.Types.ObjectId,
        ref: "merchant_wine"
    },
    //订单id
    orderid:{
        type: Schema.Types.ObjectId,
        ref: "customer_order"
    },
   
    //酒数量
    count:{
        type: Number
    },

});



export const customer_orderwineModel = MongooseFactory.Model("customer_orderwine", schema);